This article originates from: http://blog.csdn.net/dt235201314/article/details/73176149SOURCE download welcome Star (updating): Https://github.com/JinBoy23520/CoderToDeveloperByTCLerI. StatementThis week's learning content is Android storage, requirements: Database SQLite related operations, commonly used file access methods, as well as practical learning, the main learning SQLITE,SD card file operation, sh
Uninstall SD card:1. in the Android phone, I "set" rarr; "storage" rarr; "uninstall SD card" on the mobile phone ", in the displayed "uninstall SD card" window, click "OK" to uninstall the device.2. After The uninstallation is complete, we also find the
1. In Samsung mobile phone standard mode, we only need to slide the main screen page, the effect is as follows.2. Click [Settings] on the displayed page.3. Then we can see the storage option in the list and click it.4. Now, click the format SD card option and find the following.5. Click the format SD card option again. The options are described here.6. Click [del
Mobile phone storage and SD card of all storage devices mounted to Android devicesObtain all memory attached to an Android device
The android system provides Environment. the getExternalStorageDirectory () interface obtains the path of the storage. However, this interface does not always give us the desired result. On
Android implements SD card and memory file storage in the same way. The method for obtaining the file path is basically the same as that of java. The following is the code of the program. The configuration location and implementation are different. Others are the same. The following code is used:
Main. xml:
[Html]Android: orientation = "vertical"Android: layout_width = "fill_parent"Android: layout_height =
Android newest mobile phone internal storage size, SD card storage size Method
We used to obtain this information in the past.
// Before Android API18: fs. getAvailableBlocks () * fs. getBlockSize ()
Currently:
/** Obtain available system memory **/@ SuppressLint ("NewApi") private String getMemFree () {StatFs fs = new StatFs (Environment. getDataDi
How to restore pictures deleted from the memory card, whether it's for the memory card in the camera or the memory card in the mobile phone, is a good tool for the current young people, especially when mobile phones are frequently updated today, mobile phone memory is constantly increasing, pixels are constantly increasing, and there is a need to replace
TF card, also known as microSD, is a very small flash memory card, invented by a famous storage vendor, SanDisk. This card is mainly used in mobile phones, but because it has a small size, with the increased capacity, it slowly began to use in GPS devices, portable music players and some flash memory disk. The TF
The previous section describes how to store files to an internal device. Sometimes, you need to store files to an external storage device, such as an SD card. Because SD cards have greater storage space, they can also be easily shared with other users.
Use the example in the previous section to save the text entered by the user on the SD
Method 1: dependency window
Method 2: start with the Registry
Method 1:
Because both USB storage devices and SD cards are storage devices,
When the device is connected, enumerate the sub-keys under the Registry path "HKEY_LOCAL_MACHINE // drivers // active". Find the items that match this value in self-check according to P-> dbcp_name, check whether the value of the key item "key" contains the "drivers
(): - #Modifying Functions - Globalcard_infors -Mod_name = Raw_input ("Please enter the name you want to modify:") A forTempinchcard_infors: + iftemp['name'] ==Mod_name: thetemp['name'] = Raw_input ("Please enter a new name:") -temp['QQ'] = Raw_input ("Please enter the new QQ:") $temp['Weixin'] = Raw_input ("Please enter a NEW:") thetemp['Addr'] = Raw_input ("Please enter a new address:") the Print("-------Modification completed--------") the return
How to set the memory card as the default storage location
Click "Settings" in the phone
Pull down, locate and click "Save"
Pull down, locate and click "Preferred Install location"
Click "User Space" in the pop-up window
Click the window will automatically close, and finally check the "Preferred installation location" shown below is "user space" is done le, (different mobile
Read and write the files in the SD card as follows: 1 call Environment's Getexternalstoragestate () method to determine if the SD card is plugged into the phone and the application has the ability to read and write the SD cardIf the phone is already plugged into an SD card and has the ability to read and write the SD card
When you use a mobile phone, often mistakenly format the phone memory card. Cell phone memory card is a very important part of the mobile phone, where the storage of our communications records, information, applications and personal information, and so on, if the memory card is formatted, it will cause users very big t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.